package com.robot.mannge.common.entity.sys;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsNotNull;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.robot.mannge.common.entity.BaseSuperAutoPkDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: Smile
 * @Date: 2024/01/25/15:51
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
@TableComment("管理平台角色表")
public class SysRoleDO extends BaseSuperAutoPkDO<SysRoleDO> {

    @Column(comment = "角色的编码",length = 50,defaultValue = "")
    @IsNotNull
    private String roleCode;

    @Column(comment = "角色名称",length = 50,defaultValue = "")
    @IsNotNull
    private String roleName;

    @Column(comment = "创建人",type = MySqlTypeConstant.BIGINT)
    @IsNotNull
    private Long createUser;

    @Column(comment = "备注")
    private String remark;

    @Column(comment = "是否删除 0-未删除，1-已删除",defaultValue = "0",
            type = MySqlTypeConstant.TINYINT)
    private boolean isDelete;

}
